PSDTech TOID System communication driver

 

PSDTech TOID System communication driver is the driver to communicate with analysis controller( current, temperature, voltage, ... ) of PsdTech Co., Ltd. in Korea.

 

1. Read settings

 

<Figure 1> is read setting example of PSDTech TOID System communication driver.

<Figure 1> Read setting example of PSDTech TOID System communication driver

Device part of  <Figure 1> input Com Port(COM1), Baud Rate(9600), Parity Bit(0), Data Bit(8), Stop Bit(1) respectively according to setting of controller.

Also you can set 'waiting time Start/Stop command'( default : 2000 milli second ) by using option part.

 

PSDTech TOID System communication driver¡¯s read schedule

Read schedule setting parameters are as follows:

1) STATION – 1 ~ 32 station number of TOID controller.

2) Measurement method – measurement method = MANUAL, AUTO. ( refer to <Table 1> )

MANUAL – manual measurement,

 AUTO – automatic measurement.

3) Read start address – 1 ~ 4 channel number.

4) Save Start Address for Communication Server – readed data saving start address of communication server.

5) Read Size – read size. ( fixed to 3 )

 

Read schedule example)

READ,    1,   MANUAL,     3,    0,  3,

 

<Table 1> is data saving address and contents for MANUAL, AUTO read command.

Data saving address

Contents

Remarks

Start addr + 0 read communication status 1 : receive OK,
0 :error
Start addr + 1 temperature  
Start addr + 2 voltage  
Start addr + 3 current  
<Table 1> Data saving address and contents for MANUAL, AUTO read command

PSDTech TOID System communication driver store the same data in WORD, DWORD, FLOAT memory, but the data format are different.

 

2. Write settings

You can read and control by using write settings.

 

Digital Write

Digital write setting parameters are as follows:

1)  PORT                   Port no. (0 ~ 255)

2)  STATION             1 ~ 32 station number of TOID controller.

3)  ADDRESS           1 ~ 4 writing channel number.

4) Extra1                    write command = MANUAL, AUTO, M_START, A_START, M_STOP, A_STOP.

MANUAL  – read of manual measurement,

AUTO  – read of automatic measurement,

M_START  – manual measurement start command,

A_START  – automatic measurement start command,

M_STOP  – manual measurement stop command,

A_STOP  – automatic measurement stop command.

5) Extra2                    readed data or write status data saving start address.

MANUAL, AUTO  – readed data saving start address ( refer to <Table 1> ),

M_START, A_START, M_STOP, A_STOP – write status data saving address (  1 = write OK, 0 = write error ).

 

Write example 1)

PORT:0,  station:1, ADDRESS:0001, Extra1: M_START,  Extra2 : 20

The setting parameter shown above is manual measurement start control example for 1 channel, 1 station number TOID controller.

After writing, write status save at 20 WORD, DWORD, FLOAT memory. (  1 = write OK, 0 = write error )

 

Write example 2)

PORT:0,  station:1, ADDRESS:0001, Extra1: MANUAL,  Extra2 : 0

The setting parameter shown above is manual measurement read setting example for 1 channel, 1 station number TOID controller.

After reading, the readed data save from 0 ~ 3 WORD, DWORD, FLOAT memory.

 

Write example 3)

PORT:0,  station:1, ADDRESS:0001, Extra1: M_STOP,  Extra2 : 30

The setting parameter shown above is manual measurement stop control example for 1 channel, 1 station number TOID controller.

After writing, write status save at 20 WORD, DWORD, FLOAT memory. (  always save 1 )

 

 

Write example 4)

PORT:0,  station:1, ADDRESS:0003, Extra1: M_START,  Extra2 : 50

The setting parameter shown above is manual measurement start control example for 3 channel, 1 station number TOID controller.

After writing, write status save at 50 WORD, DWORD, FLOAT memory. (  1 = write OK, 0 = write error )

 

Write example 5)

PORT:0,  station:1, ADDRESS:0003, Extra1: MANUAL,  Extra2 : 100

The setting parameter shown above is manual measurement read setting example for 3 channel, 1 station number TOID controller.

After reading, the readed data save from 100 ~ 103 WORD, DWORD, FLOAT memory.

 

Analog Write

Analog write and digital write have the same setting parameters except output value.

 

3. Connection of communication cable

Please connect RS-422 communication cable to 2, 7, 3, 8 pin ( at 9pin connector ) of PQM controller.

 

  RS-422 of computer         1st 9pin connector of TOID controller

Tx+  --------------------------------- 2 pin

Tx-  --------------------------------- 7 pin

Rx+  --------------------------------- 3 pin

Rx-  --------------------------------- 8 pin

 

<Figure 2> is connection example of main power and communication cable to TOID system.

<Figure 3> is appearance of TOID system.

<Figure 2> Connection example of main power and communication cable to TOID system
<Figure 3> Appearance of TOID system